﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataVisit.Factory;
using System.Collections;

namespace DataVisit.Handler.View
{
    public class Rental_childView : AbstractView
    {
        /// <summary>
        /// 租赁金额统计分析
        /// </summary>
        public void GetRental_child() 
        {
            string dzName = JsonRequest.GetParam<string>("groupname");
            JsonResponse.ResponseObject = DaoFactory.Rental_childDao.GetRental(dzName);
        }

        /// <summary>
        /// 租赁数量统计分析
        /// </summary>
        public void GetRentalCount() 
        {
            string EquipmentName = JsonRequest.GetParam<string>("EquipmentName");
            JsonResponse.ResponseObject = DaoFactory.Rental_childDao.GetRentalCount(EquipmentName);
        }
    }
}
